Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

450
Views
React native error "Attempting to change the getter of an unconfigurable property"

When trying to run this code I get the error "Attempting to change the getter of an unconfigurable property" what do you think is the cause, I am running the code in snack expo

import * as React from 'react';
import { Button, View } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from 'react-navigation';

class ScreenComponentOne extends React.Component {
  render(){
    return(
      <View>
        <Button onPress={() => this.props.navigation.navigate('RouteNameTwo')} title="home"/>
      </View>
    )
  }
}

class ScreenComponentTwo extends React.Component {
  render(){
    return(
      <View>
        <Button onPress={() => this.props.navigation.navigate('RouteNameOne')} title="settings"/>
      </View>
    )
  }
}
const AppNavigator = createStackNavigator({
  RouteNameOne: ScreenComponentOne,
  RouteNameTwo: ScreenComponentTwo,
})

export default class App extends React.Component {
  render(){
    return <AppNavigator />
  }
}

about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!